#ifndef QRCODE_HMI_H
#define QRCODE_HMI_H
/* ESP_QRcode. tft version for ST7789
 * include this .h if you have a TFT display
 */

#define TFTDISPLAY

#include "qrcodedisplay.h"
#include "hmi.h"


class QRcodeHMI : public QRcodeDisplay
{
	private:
		HMI *display;
        void drawPixel(int x, int y, int color);
	public:
		
		QRcodeHMI(HMI *display);

		void init();
		void init(uint16_t x0,uint16_t y0,uint16_t width,uint16_t height);
		void screenwhite();
		void screenupdate();
        uint16_t x_start,y_start;
};
#endif